<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪类选择器</title>
    <style>
        a{
            font-size: 80px;
            color: gray;
        }
        a:hover{
            color: red;
        }
        a:active{
            color: lime;
        }
        a:visited{
            color: aqua;
        }
    </style>
    <style>
        .nav{
            list-style: none;
            width: 100px;
            line-height: 40px;
        }
        .nav li{
            border: 1px solid #369;
            padding: 0 20px;
            cursor: pointer;/*给元素添加光标提示即 鼠标放上去变成小手*/
        }
        .nav li:hover{
            background-color: darkorchid;
        }
    </style>
</head>
<body>
<h1>类选择器测试</h1>
<hr>
<a href="http://www.baidu.com">首页</a>
<a href="http://www.taobao.com">关于</a>
<a href="http://lampbrother.net">联系我们</a>
<a href="#">底部</a>
<hr>
<h2>伪类选择器的作业</h2>
    <ul class="nav">
        <li>服装</li>
        <li>蔬菜</li>
        <li>日用品</li>
        <li>调料</li>
    </ul>
</body>
</html>